<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-icon" data-rule="required" class="form-control" size="50" name="row[icon]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-icon" class="btn btn-danger plupload" data-input-id="c-icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-icon" class="btn btn-primary fachoose" data-input-id="c-icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-icon"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-icon"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('权益类型')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-coupon_code_class_id"  data-params='{"custom[is_enable]":"1"}'    data-source="coupon_code_class/index" class="form-control selectpage" name="row[coupon_code_class_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('面值')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('非会员价')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-retail_price" data-rule="required" class="form-control" name="row[retail_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('会员价')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-price1" data-rule="required" class="form-control" name="row[price1]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('采购价')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-cost_price" data-rule="required" class="form-control" name="row[cost_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('商品编码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="" class="form-control" name="row[goods_code]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Introduction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-introduction" data-rule="required" class="form-control " rows="5" name="row[introduction]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-describe" data-rule="" class="form-control editor " rows="5" name="row[describe]" cols="50"></textarea>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('权益地市')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-coupon_code_cities_id" data-rule="required" data-params='{"custom[is_enable]":"1","custom[level]":"2"}'  data-source="coupon_code_cities/index" class="form-control selectpage" name="row[coupon_code_cities_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('权益学校')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-coupon_code_school_id" data-params='{"custom[is_enable]":"1","custom[level]":"3"}'  data-source="coupon_code_cities/index" class="form-control selectpage" name="row[coupon_code_school_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
    
    
   <!-- <div class="form-group" id="brand">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-brand_id" data-field="username"  data-params='{"custom[status]":"1","custom[group_id]":"0","custom[pid]":"0"}' data-source="user/user/index" class="form-control selectpage" name="row[brand_id]" type="text" value="">
        </div>
    </div> -->
      <!-- <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('关联码库')}:</label>
         <div class="col-xs-12 col-sm-8" >
             <input id="c-coupon_code"  data-multiple="true"   data-params='{"custom[is_enable]":"1"}'   data-rule="required" data-source="coupon_code_category/index" class="form-control selectpage" name="row[coupon_code]" type="text" value="">
         </div>
     </div> -->
    <!-- <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>
        <div class="col-xs-12 col-sm-8" >
            <input id="c-coupon_id" data-rule="required" data-multiple="true" data-params='{"custom[is_enable]":"1"}' data-source="coupon_to/index" class="form-control selectpage" name="row[coupon_id]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_enable')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_enable]', ['1'=>__('Normal'), '0'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('首页推荐')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[tuijian]', ['1'=>__('Normal'), '0'=>__('Hidden')])}
        </div>
    </div>
<!--    <div class="form-group" >-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8" >-->
<!--            <input id="c-coupon_id" data-rule="required"   data-multiple="true"   data-params='{"custom[is_enable]":"1"}'  data-source="coupon_to/index" class="form-control selectpage" name="row[coupon_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Sales')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-sales" data-rule="required"   class="form-control" name="row[sales]" type="number" value="0">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-add_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

